<extend name="Public/base"/>

<block name="body">
	<div class="main-title">
		<h2>{$meta_title}</h2>
	</div>

	<!--<div class="cf">-->
		<!--&lt;!&ndash;<a class="btn" href="{:U('edit')}">新 增</a>&ndash;&gt;-->
		  <!--&lt;!&ndash;<button class="btn ajax-post confirm" url="{:U('del')}" target-form="ids">删 除</button>&ndash;&gt;-->
        <!--<div class="search-form fr cf">-->
            <!--<div class="sleft">-->
                <!--<input type="text" name="nickname" class="search-input" value="{:I('nickname')}" placeholder="请输入会员名称">-->
                <!--<a class="sch-btn" href="javascript:;" id="search" url="__SELF__"><i class="btn-search"></i></a>-->
            <!--</div>-->
        <!--</div>-->
	<!--</div>-->

	<div class="data-table table-striped">
		<table class="">
			<thead>
			<tr>
				<th class="row-selected">
					<input class="checkbox check-all" type="checkbox">
				</th>
				<th>UID</th>
				<th class="">会员开始时间</th>
				<th class="">会员结束时间</th>
				<th class="">操作</th>
			</tr>
			</thead>
			<tbody>
			<notempty name="list">
			<volist name="list" id="vo">
				<tr>
					<td><input class="ids row-selected" type="checkbox" name="uid[]" value="{$vo['uid']}"></td>
					<td class="">{$vo['uid']}</td>
					<td class="">{$vo['start_time']|date='Y-m-d H:i:s',###}</td>
					<td class="">{$vo['end_time']|date='Y-m-d H:i:s',###}</td>
					<td>
						<a href="{:U('show',array('uid'=>$vo['uid']))}">查看</a>
						<a href="{:U('del',array('uid'=>$vo['uid']))}" class="confirm ajax-get">删除</a>
					</td>
				</tr>
			</volist>
			<else/>
			<td colspan="6" class="text-center"> aOh! 暂时还没有内容! </td>
			</notempty>
			</tbody>
		</table>
        <!-- 分页 -->
        <div class="page">
{$_page}
        </div>
	</div>
</block>

<block name="script">
 <script type="text/javascript">
        $(function() {
            //搜索功能
            $("#search").click(function() {
                var url = $(this).attr('url');
                var query = $('.search-form').find('input').serialize();
                query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g, '');
                query = query.replace(/^&/g, '');
                if (url.indexOf('?') > 0) {
                    url += '&' + query;
                } else {
                    url += '?' + query;
                }
                window.location.href = url;
            });
            //导航高亮
            highlight_subnav("{:U('index')}");
        });
    </script>
</block>